<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>

<title>Book Store</title>
<link rel="stylesheet" type="text/css" href="${path}/style/style.css" />

</head>
<body>
<div id="wrap">

    <!--    <div class="header">
       		<div class="logo"><a href="index.html"><img src="images/logo.gif" alt="" title="" border="0" /></a></div>            
        <div id="menu">
            <ul>                                                                       
            <li class="selected"><a href="index.html">首页</a></li>
            
            <li><a href="category.html">图书</a></li>
            <li><a href="specials.html">特价图书</a></li>
            <li><a href="myaccount.html">登陆</a></li>
            <li><a href="register.html">注册</a></li>
            <li><a href="details.html">prices</a></li>
            <li><a href="about.html">我的订单</a></li>
            <li><a href="about.html">关于我们</a></li>
            <li><a href="contact.html">联系我们</a></li>
            </ul>
        </div>       
            
            
       </div>  -->
       <%@ include file="../common/header.jsp"%>
       
       <div class="center_content">
       	<div class="left_content">
        	
            <div class="title"><span class="title_icon"><img src="${path }/images/bullet1.gif" alt="" title="" /></span>特价图书</div>
        	<c:forEach var="b" items="${paging.books}">
        	<div class="feat_prod_box">
            
            	<div class="prod_img"><a href="${path }/book/detailbook?bookid=${b.bookId}"><img src="${path }/images/${b.imgUrl}" alt="" title="" border="0" width="98px" height="150px"/></a></div>
                
                <div class="prod_det_box">
                	<span class="special_icon"><img src="${path }/images/special_icon.gif" alt="" title="" /></span>
                	<div class="box_top"></div>
                    <div class="box_center">
                    	<div class="prod_title">图书名称:&nbsp;&nbsp;${b.bookName }</div>
                    	<p class="details">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;者：${b.author }</p>
                    	<p class="details">出&nbsp;&nbsp;版&nbsp;&nbsp;社：${b.publish }</p>
                   	 	<p class="details">出版日期：${b.publishDate }</p>
                   	 	<p class="details">价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格：${b.price }元</p>
                    	<a href="${path }/book/detailbook?bookid=${b.bookId }" class="more">- 更多信息 -</a>
                    	<div class="clear"></div>
                    </div>
                    
                    <div class="box_bottom"></div>
                </div>    
            <div class="clear"></div>
            </div>	
        	</c:forEach>
            
            
       <!--  	<div class="feat_prod_box">
            
            	<div class="prod_img"><a href="details.html"><img src="images/prod2.gif" alt="" title="" border="0" /></a></div>
                
                <div class="prod_det_box">
                <span class="special_icon"><img src="images/special_icon.gif" alt="" title="" /></span>
                	<div class="box_top"></div>
                    <div class="box_center">
                    	<div class="prod_title">图书名称:&nbsp;&nbsp;红楼梦</div>
                    	<p class="details">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;者：曹雪芹</p>
                    	<p class="details">出&nbsp;&nbsp;版&nbsp;&nbsp;社：人民出版社</p>
                   	 	<p class="details">出版日期：2001-01-01</p>
                   	 	<p class="details">价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格：23.00元</p>
                    	<a href="details.html" class="more">- 更多信息 -</a>
                    	<div class="clear"></div>
                    </div>
                    
                    <div class="box_bottom"></div>
                </div>    
            <div class="clear"></div>
            </div>
            
            
            
        	<div class="feat_prod_box">
            
            	<div class="prod_img"><a href="details.html"><img src="images/prod1.gif" alt="" title="" border="0" /></a></div>
                
                <div class="prod_det_box">
                	<span class="special_icon"><img src="images/special_icon.gif" alt="" title="" /></span>
                	<div class="box_top"></div>
                    <div class="box_center">
                    	<div class="prod_title">图书名称:&nbsp;&nbsp;红楼梦</div>
                    	<p class="details">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;者：曹雪芹</p>
                    	<p class="details">出&nbsp;&nbsp;版&nbsp;&nbsp;社：人民出版社</p>
                   	 	<p class="details">出版日期：2001-01-01</p>
                   	 	<p class="details">价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格：23.00元</p>
                    	<a href="details.html" class="more">- 更多信息 -</a>
                    	<div class="clear"></div>
                    </div>
                    
                    <div class="box_bottom"></div>
                </div>    
            <div class="clear"></div>
            </div>	
            
            
        	<div class="feat_prod_box">
            
            	<div class="prod_img"><a href="details.html"><img src="images/prod2.gif" alt="" title="" border="0" /></a></div>
                
                <div class="prod_det_box">
                <span class="special_icon"><img src="images/special_icon.gif" alt="" title="" /></span>
                	<div class="box_top"></div>
                    <div class="box_center">
                    	<div class="prod_title">图书名称:&nbsp;&nbsp;红楼梦</div>
                    	<p class="details">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;者：曹雪芹</p>
                    	<p class="details">出&nbsp;&nbsp;版&nbsp;&nbsp;社：人民出版社</p>
                   	 	<p class="details">出版日期：2001-01-01</p>
                   	 	<p class="details">价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格：23.00元</p>
                    	<a href="details.html" class="more">- 更多信息 -</a>
                    	<div class="clear"></div>
                    </div>
                    
                    <div class="box_bottom"></div>
                </div>    
            <div class="clear"></div>
            </div>   -->          
            
                      <div class="pagination">
           <c:set var="url"
			value="${path}/book/viewbookbycate?cateid=1000000"></c:set>
			<%@ include file="../common/page.jsp" %>
            </div>   
                     
            
        <div class="clear"></div>
        </div><!--end of left content-->
        
        <div class="right_content">
        	<div class="languages_box">
            <span class="red">Languages:</span>
            <a href="#"><img src="${path }/images/gb.gif" alt="" title="" border="0" /></a>
            <a href="#"><img src="${path }/images/fr.gif" alt="" title="" border="0" /></a>
            <a href="#"><img src="${path }/images/de.gif" alt="" title="" border="0" /></a>
            </div>
                <div class="currency">
                <span class="red">Currency: </span>
                <a href="#">GBP</a>
                <a href="#">EUR</a>
                <a href="#"><strong>USD</strong></a>
                </div>
                
                
                <div class="cart">
                  <div class="title"><span class="title_icon"><img src="${path }/images/cart.gif" alt="" title="" /></span>我的购物车</div>
                  <div class="home_cart_content">
                  	  <c:if test="${userInfo!=null }"><span id="itemCount" color="black">${cart.allcount }</span></c:if><c:if test="${userInfo==null }">0</c:if>个商品 | <span class="red">总价: <c:if test="${userInfo!=null }"><span id="allPrice">${cart.allPrice }</span></c:if>  <c:if test="${userInfo==null }">0.0</c:if>$</span>
                  </div>
                  <a href="${path }/permission/cart/permissionCart" class="view_cart">查看购物车</a>
              
              </div>
                       
            	
        
        
             <div class="title"><span class="title_icon"><img src="${path }/images/bullet3.gif" alt="" title="" /></span>关于我们店</div> 
             <div class="about">
             <p>
             <img src="${path }/images/about.gif" alt="" title="" class="right" />
             本书店是天创集团旗下的天智教育经营的书店，开业十年来，一直与国内外五百家出版社，近千家发行单位保持着良好的合作关系。以其集文化传播、艺术鉴赏、休闲为一体的崭新经营方式、一流的购书环境及优质的服务，赢得了众多的荣誉，成为华东地区最大的集图书、音像制品、文化用品、快餐、软件开发、广告策划于一体的图书零售企业。
             </p>
             
             </div>
             
             <div class="right_box">
             
             	<div class="title"><span class="title_icon"><img src="${path }/images/bullet4.gif" alt="" title="" /></span>图书推荐</div> 
                 <c:forEach var="tb" items="${tuijianBook.books }">
					<div class="new_prod_box">
						<a href="details.html">${tb.bookName}</a>
						<div class="new_prod_bg">
							<span class="new_icon"><img src="${path}/images/promo_icon.gif"
								alt="" title="" /></span> <a href="details.html"><img
								src="${path}/images/${tb.imgUrl}" alt="" title="" class="thumb" border="0" width="60px" height="90px"/></a>
						</div>
					</div>
					 </c:forEach>
                    
                  <!--   <div class="new_prod_box">
                        <a href="details.html">穆斯林葬礼</a>
                        <div class="new_prod_bg">
                        <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span>
                        <a href="details.html"><img src="images/thumb2.gif" alt="" title="" class="thumb" border="0" /></a>
                        </div>           
                    </div>                    
                    
                    <div class="new_prod_box">
                        <a href="details.html">围城</a>
                        <div class="new_prod_bg">
                        <span class="new_icon"><img src="images/promo_icon.gif" alt="" title="" /></span>
                        <a href="details.html"><img src="images/thumb3.gif" alt="" title="" class="thumb" border="0" /></a>
                        </div>           
                    </div>              
              -->
             </div>
             
             <div class="right_box">
             
             	<div class="title"><span class="title_icon"><img src="${path }/images/bullet5.gif" alt="" title="" /></span>图书分类</div> 
                
                <ul class="list">
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>                                              
                </ul>
                
             	<div class="title"><span class="title_icon"><img src="${path }/images/bullet6.gif" alt="" title="" /></span>合作伙伴</div> 
                
                <ul class="list">
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>
                <li><a href="#">books gifts</a></li>
                <li><a href="#">specials</a></li>
                <li><a href="#">hollidays gifts</a></li>
                <li><a href="#">accesories</a></li>                              
                </ul>      
             
             </div>         
             
        
        </div><!--end of right content-->
        
        
       
       
       <div class="clear"></div>
       </div><!--end of center content-->
       
        <%@ include file="../common/foot.jsp" %>      
      <!--  <div class="footer">
       	<div class="left_footer"><img src="images/footer_logo.gif" alt="" title="" /><br /> <a href="http://csscreme.com"><img src="images/csscreme.gif" alt="by csscreme.com" title="by csscreme.com" border="0" /></a></div>
        <div class="right_footer">
        <a href="#">home</a>
        <a href="#">about us</a>
        <a href="#">services</a>
        <a href="#">privacy policy</a>
        <a href="#">contact us</a>
       
        </div>
        
       
       </div> -->
    

</div>
<script type="text/javascript">
	function changeSize(obj) {
			var value = obj.value;
			var url = "${url}&pageNow=1&pageSize=" + value;
			window.location = url;
		}

		function goPage() {
		
			var value = document.getElementById("goPage").value;
			//进行参数有效性判断
			var reg = /^[1-9]\d*$/;

			var count=${pageing.pageCount};
			

			if (reg.test(value.trim())) {
				//判断页数是否超过总的页数
				if (value > count) {
					alert("已经超过总的页数了!");
				} else {
					window.location = "${url}&pageNow=" + value
							+ "&pageSize=${pageing.pageSize}";
				};
			} else {
				alert("请输入合理的跳转页数!");
			};
		};
</script>
</body>
</html>